<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="../vuejs/vue.js"></script>
    <template id="my-app">
       <!-- <input type="text" v-model="messge">
       <h2>{{messge}}</h2> -->
       <input type="text" :value="messge" @input="getInputValue">
       <h2>{{messge}}</h2>
    </template>
    <script>
        Vue.createApp({
            template:`#my-app`,
            data(){
                return{
                    messge:'Helo,Word'
                }
            },
            methods:{
                getInputValue(event){
                    this.messge=event.target.value;
                }
            }

        }).mount('#app')
    </script>
</body>
</html>